package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author ShouPeng
 * @since 2024-01-17
 * 订单包含的商品实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mall_order_item")
@AllArgsConstructor
//@ApiModel(value="OrderItem对象", description="")
public class OrderItem implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

//    @ApiModelProperty(value = "订单ID")
    private String orderId;

//    @ApiModelProperty(value = "商品ID")
    private String goodsId;

//    @ApiModelProperty(value = "购买数量")
    private Integer quantity;

    @TableField(exist = false)
    private String shoppingCartId;
}
